cmake_minimum_required(VERSION 3.13)
project(fastxml C)

set(CMAKE_C_STANDARD 99)
set(MAIN_SOURCE main.c)

include_directories(
    src/tool
    src/xml
    src/string
    demo
)

aux_source_directory(src/tool       TOOL_SOURCE)
aux_source_directory(src/string     STRING_SOURCE)
aux_source_directory(src/xml        XML_SOURCE)
aux_source_directory(demo           DEMO_SOURCE)

add_executable(
    fastxml
    ${MAIN_SOURCE}
    ${TOOL_SOURCE}
    ${STRING_SOURCE}
    ${XML_SOURCE}
    ${DEMO_SOURCE}
)